<?php
// +----------------------------------------------------------------------
// | CompanyValidate 代理验证器
// +----------------------------------------------------------------------
// | Author: cart <xiaozhao755@gmail.com>
// +----------------------------------------------------------------------
// | Datetime: 2017-12-20 09:00:00
// +----------------------------------------------------------------------
// | Copyright: 车保点点
// +----------------------------------------------------------------------
namespace app\admin\validate;

use think\Validate;

class CouponValidate extends Validate
{
    // protected $rule = [
    //     ['user_name', 'unique:user', '管理员已经存在']
    // ];

    protected $rule = [
        ['company', 'require', '请选择代理'],
        ['expirationValue', 'require', '请输入过期时间'],
        ['expirationType', 'require', '请选择类型'],
        ['value', 'require', '请选择金额'],
        ['name', 'require', '请输入公司名'],
    ];

    protected $scene = [
        'addData' => ['name','value','expirationType','expirationValue','company'],
        // 'addData' => ['name','province','city','dist','top_cid','mobile'],
    ];

}